Calculated Tokens

This Closedproperty box allows you to define the custom tokens created by the Token Calculator activity.

To configure Calculated Tokens

  1. Add the Token Calculator activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
  2. Select the activity in the Designer Pane.
  3. Under Calculated Tokens, in the Properties Pane, select New Token.
  1. In the New Token dialog box, type a name for your new token next to Token Name.
  2. Below Token Name, select a function and click . For a complete list of formulas for Token Calculator, go to Formula Descriptions. ClosedShow me an example.
  3. Click Test Formula to make sure you set up the formula correctly.
  4. Note: To test a function that allows for multi-value tokens, separate each value with a semicolon. For example, to use the expression "SUM(%(token))," enter "1;2;3" and click OK.

  5. In Token Tags, set the token type. If the type of the token value is a number, for example, you must select "Number" in Token Tags.
  6. Note: To use mathematical expressions to create custom date and time tokens, use the Date Token Calculator activity.

    Note: Typing in decimal numbers (e.g., 3.5) in the Sum and Average functions is not supported when your regional settings use a comma as the decimal separator.

  7. Click OK.
  8. Optional: You can add to and organize your custom tokens in the ClosedCalculated Tokens property box in the Properties Pane.